go string to byte array

161

go string to byte array -

b := []byte("ABC€")
s := string([]byte{65, 66, 67, 226, 130, 172})

Comments

Submit
0 Comments